package com.cjkj.equipment.service;

import com.cjkj.equipment.domain.EquipmentMonitorRecords;
import com.cjkj.equipment.domain.EquipmentTJ03MonitorRecords;
import com.cjkj.equipment.domain.dto.EquipmentHistoryDataRequest;
import com.cjkj.equipment.domain.vo.TJ03RealTimeData;

import java.util.Date;
import java.util.List;

/**
 * 设备监测数据记录Service接口
 * 
 * @author cjkj
 * @date 2024-08-15
 */
public interface IEquipmentMonitorRecordsService {

    /**
     * 新增设备监测数据记录
     *
     * @param equipmentMonitorRecords 设备监测数据记录
     * @return 结果
     */
    int insertEquipmentMonitorRecords(EquipmentMonitorRecords equipmentMonitorRecords);

    /**
     * 获取历史数据
     * @param request
     * @return
     */
    List<EquipmentMonitorRecords> getList(EquipmentHistoryDataRequest request);

    /**
     * 新增TJ03设备监测数据记录
     *
     * @param tj03MonitorRecords 设备监测数据记录
     * @return 结果
     */
    int insertTJ03MonitorRecords(EquipmentTJ03MonitorRecords tj03MonitorRecords);

    /**
     * 获取历史数据
     * @param request
     * @return
     */
    List<EquipmentTJ03MonitorRecords> getTJ03Records(EquipmentHistoryDataRequest request);

    /**
     * 获取实时数据
     */
    TJ03RealTimeData getTJ03RealtimeData(String equipmentNo, Date startTime);
}
